import request from '@/utils/request'

/**
 * 月度汇总数据列表
 * @param {*} data
 */
export function reportSummaryListQueryAPI(reportId, platform) {
  return request({
    url: `oaExecutionReportSummary/queryListByReportId/${reportId}/${platform}`,
    method: 'post'
  })
}

/**
 * 新增/修改
 * @param {*} data
 */
export function reportSummaryAddOrUpdateAPI(data) {
  return request({
    url: `oaExecutionReportSummary/addOrUpdate`,
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 删除
 * @param {*} data
 */
export function reportSummaryDeleteAPI(id) {
  return request({
    url: `oaExecutionReportSummary/deleteById/${id}`,
    method: 'post'
  })
}
